home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / util1 / srvymm30.lha / Surveymem3.0 / Docs / Programmers / Surveymem.i < prev   
Text File  |  1995-08-05  |  2KB  |  83 lines

  1.     IFND MISC_SURVEYMEM_I
  2. MISC_SURVEYMEM_I SET 1
  3. ;**
  4. ;**    $Filename: misc/surveymem.i $
  5. ;**    $Release: 3.0 $
  6. ;**    $Revision: 1.0 $
  7. ;**
  8. ;**
  9. ;**    (C) Copyright 1995 Alexis NASR
  10. ;**    All Rights Reserved
  11. ;**
  12.  
  13.     IFND EXEC_PORTS_I
  14.         INCLUDE "exec/ports.i"
  15.     ENDC
  16.  
  17.     IFND EXEC_TYPES_I
  18.         INCLUDE "exec/types.i"
  19.     ENDC
  20.  
  21.     IFND UTILITY_TAGITEM_I
  22.         INCLUDE "utility/tagitem.i"
  23.     ENDC
  24.  
  25. ;**************************    Public data    ********************************
  26.  
  27. ;version 1 (SM v3.0)
  28. ;Most of these structs are useless for you.The only thing you can take
  29. ;advantage of are the message structure & the SM_Mark tag.
  30. ;that's why I release this include.. (No??really??)waaaah so clever *;-)
  31.  
  32. SM_TagBase    EQU    TAG_USER+"SM"
  33.  
  34.     ENUM    SM_TagBase            ; TagBase
  35.  
  36.  
  37. ;In the prefsfile or in memory,the arrangement is exactly the same.
  38. ;Chains->Mainprog
  39.     EITEM    SM_MainPop
  40.     EITEM    SM_PrefsPop
  41.     EITEM    SM_Flushpop
  42.     EITEM    SM_Frontpop
  43.     EITEM    SM_Pubscreen
  44.     EITEM    SM_Fontname
  45.     EITEM    SM_Prefspath    ;yes!we MUST know where the prefsprog is
  46.  
  47. ;recognition tags in the prefsfile/prefs
  48.     EITEM    SM_PREFSTAG    ;prefs struct follows
  49.     EITEM    SM_END
  50. ;tags used for communication
  51.  
  52.     EITEM    SM_SendStruct    ;Classic,data=pointer to the prefs struct
  53.     EITEM    SM_AskStruct    ;Ask the other to send back a pointer to
  54.                 ;the prefsstruct (SM_SendStruct :-)
  55.  
  56.  
  57. ;tags addition....
  58.     EITEM    SM_Markpop    ;Thanx to Blackbird for this (GOOD) idea
  59.     EITEM    SM_Mark        ;see SMMF_ values
  60.     EITEM    SM_Die        ;(THIS MESSAGE NEEDN'T A REPLY)
  61.  
  62.  
  63.  
  64. ;Surveymem message,used for communication between mainprog/prefsprog
  65. ;very little message,eh? (don't forget to reply when all done *:)
  66.  
  67.         RSRESET
  68. SMm:        rs.b    MN_SIZE
  69. SMm_code:    rs.l    1        ;tag or code
  70. SMm_Data    rs.l    1        ;pointer on data
  71. SMm_ext:    rs.l    1        ;additional pointer for extension (?)
  72. SMm_SIZEOF:    rs.w    0
  73.  
  74.  
  75. ;Mark state flags
  76. ;-----------------
  77. SMMF_Off    =    0
  78. SMMF_On        =    1
  79. SMMF_Freeze    =    2
  80.  
  81.     ENDC        ;MISC_SURVEYMEM_I
  82.  
  83.